<template>
<h1>下拉框组件</h1>
  <el-select v-model="city" style="width: 25%" placeholder="请选择城市">
    <el-option value="bj" label="北京"></el-option>
    <el-option value="sh" label="上海"></el-option>
    <el-option value="gz" label="广州"></el-option>
    <el-option value="sz" label="深圳"></el-option>
  </el-select>
  <h3>您选择的城市是：{{city}}</h3>
</template>
<script setup>
import {ref} from "vue";

const city = ref('bj')
</script>


<style scoped>

</style>